package com.nuesoft.ysu.elm99.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 6.类请对应好表
 */
@Data
@TableName("deptinfo")
public class Dept {
//    必须要指定主键策略
    @TableId(value = "deptid" ,type = IdType.AUTO)
    private Integer deptno;
    @TableField("deptname")
    private String dname;
    @TableField("deptloc")
    private String loc;
}
